<?php

use think\migration\Seeder;

class InitUserRole extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $table = $this->table('user_role');
        $table->insert([
            [
                'id'=>1,
                'uuid'=>'060C6A7255892DDD0E04827E7FE8226D',
                'creator'=>1,
                'updater'=>1,
                'uid'=>1,
                'client'=>\app\common\config\Client::Admin,
                'client_id'=>0,
                'roles'=>'[]',
                'update_time'=>'1637140016',
                'create_time'=>'1637140016'
            ]
        ])->save();
    }
}